package main

import (
    "facecat"
    "io/ioutil"
)

var gPaint = facecat.CreatePaint()

func WndProc(hwnd facecat.HWND, msg uint32, wParam, lParam uintptr) (result uintptr) {
    return facecat.WndProcDefault(gPaint, hwnd, msg, wParam, lParam)
}

func main() {
    facecat.CreateMainWindow(gPaint, "FaceCat-Go", WndProc)
    xmlStr, _ := ioutil.ReadFile("xml//comboboxexample.xml")
    facecat.RenderFaceCat(gPaint, string(xmlStr))
    facecat.ShowWindow(gPaint)
}